export class CommonUtils {
  static generateId(prefix: string = "__drag__", length: number = 8): string {
    const chars = "abcdefghijklmnopqrstuvwxyz0123456789";
    let id = "";
    for (let i = 0; i < length; i++) {
      id += chars.charAt(Math.floor(Math.random() * chars.length));
    }
    return prefix ? `${prefix}-${id}` : id;
  }
}
